package com.wuchao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wuchao.entity.Role;
import com.wuchao.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wuchao.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *分页查询条件多表联查
 * @author wuchao
 * @since 2022-03-29
 */
public interface UserMapper extends BaseMapper<User> {
    List<User> findUserList(@Param("page") Page<User> page,@Param("userVO") UserVO userVO);
    List<User> findUserList1(@Param("page") Page<User> page,@Param("userVO") UserVO userVO);
//登录
    User loadUserByUsername(String username);
    public List<Role> findRolesById( Long id);
}
